package com.kyw.android_dev_util.controller;
import com.kyw.android_dev_util.common.MessageConstant;
import com.kyw.android_dev_util.common.ResResult;
import com.kyw.android_dev_util.res.UserInfo;
import org.springframework.web.bind.annotation.*;

@RestController
public class UserController {
    /*@GetMapping(value = "/userInfo",produces = "application/json;charset=utf-8")
    @ResponseBody
    public ResResult getUserInfo(){
        UserInfo userInfo = new UserInfo();
        userInfo.name = "快优稳";
        userInfo.job = "Android工程师";
        return new ResResult(MessageConstant.ACCESS_OK,userInfo);
    }*/
    @GetMapping(value = "/userInfo")
    public ResResult getUserInfo(){
        UserInfo userInfo = new UserInfo();
        userInfo.name = "快优稳";
        userInfo.job = "Android工程师";
        return new ResResult(MessageConstant.ACCESS_OK,userInfo);
    }
}
